package com.iot.common.security.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.iot.common.core.constant.ServiceNameConstants;
import com.iot.common.security.feign.factory.SecurityServiceFallbackFactory;

@Component
@FeignClient(contextId = "remoteLogService", value = ServiceNameConstants.AUTH_SERVICE, fallbackFactory = SecurityServiceFallbackFactory.class)
public interface SecurityOauthService {
	@PostMapping("/oauth/check_token")
	void check_token(@RequestParam(name = "token", required = true) String token);
}
